<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jQchaining</title>
	<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function () {
			$("button").click(function () {
				$("#p1").css("color","red").slideUp(3000).slideDown(3000)

			})

		})
	</script>
</head>
<body>
<p id="p1">jQuery 乐趣十足</p>
<button>点击这里</button>

</body>
</html>